<?php
//http://localhost/ChampChooser/core/test/miscTests/testCase1.php?username=ekansh&password=ekansh
require_once ("../../config/config.php");
require_once ("../../config/constants.php");
require_once ("../../db/queries.php");
require_once ("../../common/common.php");

$username = $_REQUEST["username"];
$password = $_REQUEST["password"];

function checkLogin($username, $password) {
	$strQuery = "select * from user where username='" . $username . "' and password='" . $password . "'";
	//$strQuery ="select * from user ";
	$result = mysql_query($strQuery);
	if (!$result) {
		die("Connection Failure");
	}
	return $result;
}
makeQueryXML(checkLogin($username, $password));
?>